//
//  ExtraOnMapObject.m
//  TowerDefence
//
//  Created by k3 on 6/7/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import "ExtraOnMapObject.h"
#import "iCoreGUIController.h"

@implementation ExtraOnMapObject

-(id)initExtraOnMapObjectWith:(GameLayer *)_gameLayer {
    self = [super initGameObjectWith:_gameLayer];
    spriteBody = [CCSprite node];
    [self loadAnimation];
    return  self;
}

-(void)loadAnimation {
    NSMutableArray *animArray = [handler.mainGUIController loadAnimationWithNumberOfFrames:7 withFrameName:@"wind_milk"];
    CCAnimation *animation = [CCAnimation animationWithFrames:animArray delay:0.05];
    [spriteBody runAction:[CCRepeatForever actionWithAction:[CCAnimate actionWithAnimation:animation]]];
}

@end
